<div data-role="content" data-scroll="y" height="80%">
<div data-iscroll="scroller">
<ul data-role="listview" data-inset="true">
		<?php $this->load->model('user_model');?>
		
		<?php if (isset($rows)):foreach($rows as $r) :?>
		
		<li data-icon="false" data-icon="false">
		<p>
		<?php echo "<a href=".site_url('user_controller/show_user_profile?userID=').$r->senderid.">".$r->sender_name."</a>"; ?>
        <?php if($r->notice_type==1) echo " has applied your <a href=".site_url('feed_controller/to_apply?helloID=').$r->helloid."> ".$r->hello_title."</a> hello";
              else if($r->notice_type==2) echo " has confirmed your application for the hello <a href=".site_url('feed_controller/to_apply?helloID=').$r->helloid.">".$r->hello_title." hello</a>";
        if(!$r->is_read):
        $r->is_read=true;
        endif;
        
        ?>
		</p>
		</li>
		
		<?php endforeach;
		else :?>
		<h4>There is no notification now!</h4>
		<?php endif; ?>
		

</ul>	
</div>
</div>